<template>
    <div class="ver-style">
        <div>
            <div style="align-items: center;display: flex;flex-direction: column">
                <el-image
                        style="width: 34px; height: 34px"
                        src="https://qianduohui.oss-cn-shanghai.aliyuncs.com/whatsapp-pc/ic_chat.png">
                </el-image>
                <p style="color: #333333;font-size: 12px">{{$t('lang.leftChat')}}</p>
            </div>
            <div style="align-items: center;display: flex;flex-direction: column;margin-top: 20px" @click="newTask">
                <el-image
                        style="width: 34px; height: 34px"
                        src="https://qianduohui.oss-cn-shanghai.aliyuncs.com/whatsapp-pc/ic_task.png">
                </el-image>
                <p style="color: #777777;font-size: 12px">{{$t('lang.leftTask')}}</p>
            </div>

<!--            <div style="align-items: center;display: flex;flex-direction: column;margin-top: 20px" @click="collection">-->
<!--                <el-image-->
<!--                        style="width: 28px; height: 28px"-->
<!--                        src="https://bus-media.oss-cn-hangzhou.aliyuncs.com/scrm/config/scrm-client.png">-->
<!--                </el-image>-->
<!--                <p style="color: #777777;font-size: 12px">{{$t('lang.leftExtension')}}</p>-->
<!--            </div>-->
        </div>
        <el-image
                style="width: 20px; height: 20px"
                src="https://qianduohui.oss-cn-shanghai.aliyuncs.com/whatsapp-pc/ic_setting.png" @click="logoutDialog">
        </el-image>
    </div>
</template>

<script>
    const {ipcRenderer} = window.require("electron");

    export default {
        name: "left",
        methods: {
            newTask() {
                ipcRenderer.send("new-task-management", this.$t('lang.taskListTask'));
            },
            logoutDialog() {
                ipcRenderer.send("logout-dialog-show", '');
            },
            collection() {
                ipcRenderer.send("collection", 'http://47.96.94.134:4004/user/login');
            }
        },
        created() {
            this.$i18n.locale = localStorage.langValue
        },
    }
</script>

<style>
    .ver-style {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        padding-top: 16px;
        padding-bottom: 26px;
        height: 720px;
    }
</style>